package com.example.controller;

import cn.hutool.json.JSONArray;
import com.example.service.TagService;
import com.example.util.JsonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description //TODO
 * @Date 2022/9/14 14:44
 * @Author lonng
 **/
@ResponseBody
@Controller
@RequestMapping("tag")
public class TagController {
    @Autowired
    private TagService tagService;
    @Autowired
    private JsonUtil jsonUtil;

    @Autowired
    private RedisTemplate redisTemplate;
    @GetMapping
    public Object findAll(){

        return tagService.findAll();
    }
}
